package cn.roadtrip.mtravelbusinessmodule.mvc.dispatch;

import cn.roadtrip.mtravelbusinessmodule.bs.dispatch.TravelDispatchImpl;
import cn.roadtrip.utilmodule.util.DataBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dispatch")
public class TravelDispatchController {
    @Autowired
    private TravelDispatchImpl dispatchImpl;

    /**
     * 查询领队分配记录
     * @param model
     * @return
     */
    @PostMapping("/queryLeaderTravelDispatchList")
    public DataBean queryLeaderTravelDispatchList(
            @RequestBody TravelDispatchImpl.Model_queryLeaderTravelDispatchList model
    ) {
        return dispatchImpl.queryLeaderTravelDispatchList(model);
    }
}
